import * as user from "./user";
import { request } from "@/utils/request";

/** 获取首页banner GET /api/index/banner */
export async function getBanner() {
  return request<API.PagedList<any>>(`/api/index/banner`, {
    method: "GET"
  });
}

/** 获取推荐 GET /api/index/laywer */
export async function getLaywer(params: Record<string, any>) {
  return request<API.PagedList<any>>(`/api/index/laywer`, {
    method: "GET",
    params,
  });
}

/** 获取协议 GET /api/agreement/info */
export async function getAgreement(params: Record<string, any>) {
  return request(`/api/agreement/info`, {
    method: "GET",
    params,
  });
}

export default {
  user,
};
